package org.agile2soft.nexoma.tapestry.encoder;


import org.agile2soft.nexoma.controller.ExpedientTypePhaseExpedientsController;
import org.agile2soft.nexoma.entity.ExpedientTypePhaseExpedients;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ExpedientTypePhaseExpedientsEncoder extends HibernateIntegerEncoder<ExpedientTypePhaseExpedients> {

    public ExpedientTypePhaseExpedientsEncoder(SessionFactory sessionFactory,
            ExpedientTypePhaseExpedientsController controller) {
        super(sessionFactory, controller);
    }

//    public ExpedientTypePhaseExpedientsEncoder(SessionFactory sessionFactory,
//            ExpedientTypePhaseExpedientsController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller,primaryKeyTypeService);
//    }

    public String toLabel(ExpedientTypePhaseExpedients expedientTypePhaseExpedients) {
        return String.valueOf(expedientTypePhaseExpedients.getId());
    }

}
